{include file="include:header" /}
<body class="fixed-sidebar full-height-layout gray-bg" >
    <!-- 导航 -->
    <div class="row wrapper border-bottom white-bg page-heading orders-serve-detail">
        <div class="col-sm-4">
            <h2>服务详情</h2>
            <ol class="breadcrumb">
                <li><a href="{:url('admin/Index/home')}">主页</a></li>
                <li><a href="#">订单与服务</a></li>
                <li><strong>服务详情</strong></li>
            </ol>
        </div>
        <div class="col-sm-8">
            <div class="title-action">
                <!-- 链接部分 -->
                <a href="{:url('admin/Order/serve_list')}" class="btn btn-primary">服务列表</a>
            </div>
        </div>
    </div>
    <!-- 内容 -->
    <div class="wrapper wrapper-content">
        <div class="panel panel-default">
            <div class="panel-heading">服务信息

            </div>
            
            <div class="panel-body">
                <table class="table table-bordered white-bg">
                    <tbody>
                    <tr>
                        <th colspan="4" style="color: red;">
                            {$data['co_name']}
                        </th>
                    </tr>
                    <tr>
                        <td width="100">用户昵称：</td>
                        <td><span class="btn btn-xs btn-primary">{$data['u_nickname']?$data['u_nickname']:$data['u_phone']}</span></td>
                        <td width="100">服务号：</td>
                        <td>{$data['co_no']}</td>
                    </tr>
                    <tr>
                        <td width="100">服务金额：</td>
                        <td class="text-danger">{$data['co_money']}元</td>
                        <td width="100">服务状态</td>
                        <td>
                            {if condition="$data['co_state'] eq 1"}<span class="btn btn-xs  btn-danger">待受理
                            {elseif condition="$data['co_state'] eq 2"/}<span class="btn btn-xs btn-success">服务中
                            {elseif condition="$data['co_state'] eq 3"/}<span class="btn btn-xs btn-primary">已结束
                            {else/}<span class="btn btn-xs btn-link">已取消
                            {/if}
                        </td>
                    </tr>
                    <tr>
                        <td width="100">服务年限：</td>
                        <td>
                           <font color="blue">{$data['co_age_limit']}/年</font>
                        </td>
                        <td width="100">下单时间：</td>
                        <td>{$data['co_addtime']}</td>
                    </tr>
                    <tr>
                        <td width="100">服务开始时间：</td>
                        <td>
                            {neq name="$data['co_begintime']" value="0000-00-00 00:00:00"}{$data['co_begintime']}{/neq}
                        </td>
                        <td width="100">服务结束时间：</td>
                        <td>
                            {neq name="$data['co_finishtime']" value="0000-00-00 00:00:00"}{$data['co_finishtime']}{/neq}
                        </td>
                    </tr>
                    <tr>
                        <td width="100">操作时间：</td>
                        <td>
                            {neq name="$data['co_handletime']" value="0000-00-00 00:00:00"}{$data['co_handletime']}{/neq}
                        </td>
                        <td width="100" >订单备注：</td>
                        <td >{$data['co_content']}</td>
                    </tr>

                </tbody></table>
                <!-- 表格主体 -->
                <table class="table table-bordered white-bg">
                    <thead>
                    <tr>
                        <th>序号</th>
                        <th>服务内容</th>

                    </tr>
                    </thead>
                    <tbody>
                    {volist name="data['list']" id="v" key="k"}
                    <tr>
                        <td>{$k}</td>
                        <td>{$v}</td>
                    </tr>
                    {/volist}

                    </tbody>
                </table>

                <!--操作-->
           <!--     <div class="form-group">
                    <div class="text-center">
                        {if condition="$data['co_state'] eq 1"}
                            <a href="javascript:;" class="btn btn-primary btn-outline orders-orderHandle" value="1" >确定并服务</a>
                        &nbsp;&nbsp; <a href="javascript:;" class="btn btn-danger btn-outline orders-orderHandle" value="2">取消订单</a>
                        {/if}
                        <input type="hidden" name="counselor_order_id" value="{$data['counselor_order_id']}"/>
                        <input type="hidden" name="co_age_limit" value="{$data['co_age_limit']}"/>
                    </div>
                </div>-->
            </div>
        </div>
</body>
</html>
{include file="include:js" /}
